Make some usages of suggestName runtime deprecated#2556
Make some usages of suggestName runtime deprecated#2556
Conversation
|
Opening this as draft since I am still working on the tests, which are revealing to me that there are myriad usages of suggestName inside the chisel internals itself that I was not aware of |
936b66e to
9b6e3fe
Compare
|
Note this currently comments out reflective naming as it kept tripping up the "you are suggesting the same name the plugin would have given you" test |
|
This has changed in that I now am checking that thing-you-are-suggestNaming is actually |
062bb28 to
1cd71a2
Compare
* suggestName -- add some runtime deprecations * suggestName -- make it an error to call suggestName outside of Builder Context * SuggestName: create an internal version and use it internally to avoid runtime deprecations * Added a SuggestNameSpec to test suggestName behavior
…cause they are hitting the 'you get the same name as the prefix' warnings
1cd71a2 to
dbb9078
Compare
jackkoenig
left a comment
There was a problem hiding this comment.
Some minor suggestions, and 1 problem we should sort out (the error message for the suggestName matching the automatically derived name).
Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: Jack Koenig <koenig@sifive.com>
|
I think I've incorporated all the feedback |
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Contributor Checklist
docs/src?Type of Improvement
API Impact
This runtime deprecates some usages of the suggestName API and warns that they will be turned into errors in the future. Specifically, you can no longer:
Backend Code Generation Impact
No impact on output verilog, though people avoiding these runtimeDeprecations would see them.
Desired Merge Strategy
Release Notes
Some usages of suggestName are runtime deprecated or made an error
Reviewer Checklist (only modified by reviewer)
3.4.x, [small] API extension:3.5.x, API modification or big change:3.6.0)?Enable auto-merge (squash), clean up the commit message, and label withPlease Merge.Create a merge commit.